If you're trying to access the world coordinates of an object then see this thread:
https://www.sidefx.com/forum/topic/22768/?page=1#post-255947 [www.sidefx.com]
Not sure if this helps
Found 2 posts.
Search results Show results as topic list.
Technical Discussion » Set world transform on channel
- Dan de Carvalho
- 2 posts
- Offline
Technical Discussion » Extract Transforms from objects parent
- Dan de Carvalho
- 2 posts
- Offline
For clarification, if anyone doesn't understand what indexing is:
tx parm: vtorigin(“”,“/obj/mycam”)…'then 0 in square brackets'
ty parm: vtorigin(“”,“/obj/mycam”)…'then 1 in square brackets'
tz parm: vtorigin(“”,“/obj/mycam”)…'then 2 in square brackets'
rx parm: vrorigin(“”,“/obj/mycam”)…'then 0 in square brackets'
ry parm: vrorigin(“”,“/obj/mycam”)…'then 1 in square brackets'
rz parm: vrorigin(“”,“/obj/mycam”)…'then 2 in square brackets'
Side note: don't copy and paste code from a browser as the quotation marks can sometimes not be translated over correctly which will give you errors even though the code snipet may ‘look’ the same.
tx parm: vtorigin(“”,“/obj/mycam”)…'then 0 in square brackets'
ty parm: vtorigin(“”,“/obj/mycam”)…'then 1 in square brackets'
tz parm: vtorigin(“”,“/obj/mycam”)…'then 2 in square brackets'
rx parm: vrorigin(“”,“/obj/mycam”)…'then 0 in square brackets'
ry parm: vrorigin(“”,“/obj/mycam”)…'then 1 in square brackets'
rz parm: vrorigin(“”,“/obj/mycam”)…'then 2 in square brackets'
Side note: don't copy and paste code from a browser as the quotation marks can sometimes not be translated over correctly which will give you errors even though the code snipet may ‘look’ the same.
Edited by Dan de Carvalho - Aug. 7, 2018 04:15:50
-
- Quick Links